<?php

use Illuminate\Database\Seeder;
use App\Models\PrizeRecord;

class PrizeRecordsTableSeeder extends Seeder
{
    public function run()
    {
        $prizeRecords = factory(PrizeRecord::class)
                        ->times(1000)
                        ->make();


        // 将数据集合转换为数组，并插入到数据库中
        PrizeRecord::insert($prizeRecords->toArray());
    }

}

